Understanding How Quantum Annealing Solves Problems